<template>
  <div id="app">
    <div class="git-terminal">
      <div class="header">
        <SelectDirectory />
      </div>
      <AutoGit />
    </div>
  </div>
</template>

<script>
import AutoGit from './components/git/AutoGit.vue'
import SelectDirectory from './components/git/file/SelectDirectory.vue'

export default {
  components: {
    AutoGit,
    SelectDirectory
  }
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
}

#app {
  /*height: 100vh;*/
  padding: 20px;
}

.git-terminal {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Consolas', 'Courier New', monospace;
  padding: 20px;
  width: 100vh; /* 设置为你想要的百分比 */
  margin: 0 auto; /* 水平居中 */
}

.header {
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
}

.header h1 {
  margin: 0 0 15px 0;
  color: #4ec9b0;
}
</style>
